﻿namespace SocketServer.SocketResult
{
    /// <summary>
    /// Socket方法返回参数基类
    /// </summary>
    public interface ISocketResult
    {
        /// <summary>
        /// Socket方法项前端输出数据的方式
        /// </summary>
        /// <param name="webSocket">webSocket链接</param>
        void SendResult(Fleck.IWebSocketConnection webSocket);

        /// <summary>
        /// 输出给客户端的数据 没有则返回null
        /// </summary>
        /// <returns></returns>
        object GetData();
    }
}
